//package com.sunlands.zlcx.usercenter.util.image;
//
//
//import javax.imageio.ImageIO;
//import java.awt.*;
//import java.awt.image.BufferedImage;
//import java.io.ByteArrayOutputStream;
//import java.io.File;
//import java.util.ArrayList;
//import java.util.List;
//
//public class QrcodeTest {
//    public static final String content = "http://img.sunlands.wang/deskmateApp/index/invitation.html?ids=\" + userId + \",type=2&name=\"+usersDO.getName()+\"&avater=https://img.sunlands.wang/tongzhuo/avatar/2020/0209/20200209173921.jpg&target=\"+usersDO.getCurrentLearnTargetName()+\"&from=singlemessage&isappinstalled=0";//二维码里面的内容
//    public static final String bgPath = "/Users/imaginary/tongzhuo-share1.png";//logo路径
//    public static final String logoPath = "/Users/imaginary/logo.png";//logo路径
//
//    public static final String qrcodePath = "/Users/imaginary/tongzhuo.png";//单纯二维码存放地址
//    public static final String logoQrcodePath = "/Users/imaginary/tongzhuo-logo.png";//有logo二维码存放地址
//    public static final String textQrcodePath = "/Users/imaginary/tongzhuo-wenzi.png";//有文字有logo二维码存放地址
//
//    public static void main(String args[]) {
//        try {
//
//
//            QrcodeUtils.drawQrcode(qrcodePath, content, 680, 680);
////            QrcodeUtils.addLogoToQRCode(qrcodePath, logoPath, logoQrcodePath, new LogoConfig());
//
////            //二维码文字的位置
////            List<QrcodeFont> qrCodeFontList = new ArrayList<QrcodeFont>();
////
////            QrcodeFont font1 = new QrcodeFont();
////            font1.setStartX(98);
////            font1.setStartY(273);
////            font1.setColor(Color.BLACK);
////            font1.setText("3.2小时");
////            font1.setFontSize(32);
////            qrCodeFontList.add(font1);
////
////            QrcodeFont font2 = new QrcodeFont();
////            font2.setStartX(600);
////            font2.setStartY(470);
////            font2.setColor(Color.BLACK);
////            font2.setText("3天");
////            font2.setFontSize(32);
////            qrCodeFontList.add(font2);
////
////            QrcodeUtils.pressText(logoQrcodePath, textQrcodePath, bgPath, 686, 788, qrCodeFontList);
//
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }
//
//}
